cmake_minimum_required(VERSION 3.17)
project(lwpt)

set(CMAKE_CXX_STANDARD 14)

include_directories(.)

set(Boost_INCLUDE_DIR /Users/zoudikai/Workspace/boost_1_76_0)
set(Boost_LIBRARY_DIR /Users/zoudikai/Workspace/boost_1_76_0/stage/lib)

include_directories(/Users/zoudikai/Workspace/lwpt/experiment/include)
link_directories(/Users/zoudikai/Workspace/lwpt/experiment/lib)

find_package(GSL REQUIRED)
include_directories(${GSL_INCLUDE_DIR})

set(OPENSSL_ROOT_DIR /usr/local/opt/openssl@1.1)
find_package(OpenSSL REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIR})

#set(Matlab_ROOT_DIR /Applications/MATLAB_R2021a.app)
#find_package(Matlab REQUIRED)
#include_directories(${Matlab_INCLUDE_DIRS})
#link_directories(/Applications/MATLAB_R2021a.app/bin/maci64
#        /Applications/MATLAB/MATLAB_Runtime/v910/runtime/maci64
#        /Applications/MATLAB/MATLAB_Runtime/v910/sys/os/maci64
#        /Applications/MATLAB/MATLAB_Runtime/v910/bin/maci64
#        /Applications/MATLAB/MATLAB_Runtime/v910/extern/bin/maci64)

add_executable(lwpt
        main.cpp
        PublicRandomTaskAssignment.h
        entity.h
        DataSource.h
        DifferentialPrivacyTaskAssignment.h assignment.h util.h EncryptedDirectTaskAssignment.h LightPrivateTaskAssignment.h unittest.h
        )
target_link_libraries(lwpt OpenSSL::Crypto)
target_link_libraries(lwpt GSL::gsl)
#target_link_libraries(lwpt -leng -lmx -lm -lmat)
